<?php 

	class BaseAction extends Action{
		
		public function _initialize(){
			$this -> getTitleList();
			$this -> getLinkList();
			$this -> assign('static',dirname(_PHP_FILE_));
			
		}
		
		public function getTitleList(){
			
			$TitleModel = M('Title');
			$titleList = $TitleModel ->select();
			$this -> assign('titleList',$titleList);
		}
		
		public function getLinkList(){
			
			$LinkModel = M('Link');
			$LinkList = $LinkModel -> select();
			$this -> assign('linkList',$LinkList);
			//dump($LinkList);
		}
	}
?>